package edu.sysu.demo.rabbitmq.serial;

public interface ObjectSerializer {

  byte[] serialize(Object o);

  <T> T deserialize(byte[] byteArray, Class<T> clazz);

  Object deserialize(byte[] byteArray);
}
